<?php
/* UNDER CONSTRUCTION 2009-09-24 */

class Client extends CommonClient {

	var $version = 0.1;
	var $client = "Aspicore GSM Tracker";

	var $allowed_parameters = array
	(
		"imei" => array ("userkey",true, FILTER_SANITIZE_NUMBER_INT),
		"lat" => array ("lat",true, FILTER_SANITIZE_NUMBER_FLOAT,FILTER_FLAG_ALLOW_FRACTION),
		"lon" => array ("lon",true, FILTER_SANITIZE_NUMBER_FLOAT,FILTER_FLAG_ALLOW_FRACTION),
		"speed" => array ("speed",false, FILTER_SANITIZE_NUMBER_FLOAT,FILTER_FLAG_ALLOW_FRACTION),
		"course" => array ("course",false, FILTER_SANITIZE_NUMBER_FLOAT,FILTER_FLAG_ALLOW_FRACTION),
		"heading" => array ("heading",false, FILTER_SANITIZE_NUMBER_FLOAT,FILTER_FLAG_ALLOW_FRACTION),
		"alt" => array ("alt",false, FILTER_SANITIZE_NUMBER_FLOAT,FILTER_FLAG_ALLOW_FRACTION),
		"status" => array ("status",false, FILTER_SANITIZE_STRING),
		"time" => array ("time",false, FILTER_CALLBACK, array("options"=>"fix_time")),
		"date" => array ("date",false, FILTER_CALLBACK, array("options"=>"fix_date")),
		"hdop" => array ("hdop",false, FILTER_SANITIZE_NUMBER_FLOAT,FILTER_FLAG_ALLOW_FRACTION),
		"cell" => array ("cell",false, FILTER_SANITIZE_NUMBER_INT),
		"lac" => array ("lac",false, FILTER_SANITIZE_NUMBER_INT),
		"mcc" => array ("mcc",false, FILTER_SANITIZE_NUMBER_INT),
		"mnc" => array ("mnc",false, FILTER_SANITIZE_NUMBER_INT),
		"ssi" => array ("ssi",false, FILTER_SANITIZE_NUMBER_INT),
		"nwname" => array ("nwname",false, FILTER_SANITIZE_STRING),
	);

	function __construct() {
		parent::__construct();
	}
}

?>
